/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
.servers-wrapper {
  padding: 20px 0;
  .gauge-model {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding-bottom: 30px;
    .gauge-echart {
      width: 100%;
      margin: auto;
    }
    .text-1 {
      width: 100%;
      margin: 0 auto;
      font-size: 32px;
      text-align: center;
    }
  }
  .text-num-model {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
    &.text {
      width: 100%;
      overflow: hidden;
      border: 1px solid #e8e8e8;
      margin: 0 auto;
      margin-bottom: 16px;
      > .title {
        height: 36px;
        line-height: 36px;
        border-bottom: 1px solid #e8e8e8;
        margin: 0 20px;
        span {
          width: 100%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          display: block;
          font-size: 16px;
          font-weight: 600px;
        }
      }
    }
    .value-p {
      text-align: center;
      > strong {
        font-size: 50px;
        // color: #f27011;
      }
    }
    .text-1 {
      width: 100%;
      margin: 0 auto;
      font-size: 32px;
      text-align: center;
    }
  }
  &.mysql-model {
    .text-num-model {
      .text-1 {
        font-size: 18px;
      }
      .value-p {
        height: 110px;
        line-height: 120px;
        font-size: 50px;
        > .state {
          .success {
            color: #33cc00;
          }
          .error {
            color: #ff0000;
          }
        }
      }
    }
  }
  .row-box {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    margin-bottom: 16px;
    .row-title {
      margin: 0 20px;
      height: 45px;
      line-height: 36px;
      border-bottom: 1px solid #e8e8e8;
      position: relative;
      span {
        // font-size: 12px;
        color: #333333;
        font-size: 14px;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        &.sp {
          margin-right: 6px;
        }
        &.ns {
          display: inline-block;
          position: relative;
          padding:10px;
          margin-left: 12px;
          color: #666666;
          &::before {
            position: absolute;
            left:0;
            top:26px;
            content: ' ';
            width: 4px;
            height: 4px;
            background: #33317e;
            border-radius: 50%;
          }
        }
      }
      .left {
        position: absolute;
        left: 0px;
        top: 0;
      }
      .right {
        position: absolute;
        right: 0px;
        top: 10px;
      }
    }
    .row-middle{
      margin: 0 20px;
      height: 36px;
      line-height: 36px;
      position: relative;
      span{
        // font-size: 12px;
        color: #333333;
        font-size: 14px;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        &.sp {
          margin-right: 6px;
        }
      }
      .right{
        position: absolute;
        right: 0px;
        top: 5px;
        .sp {
          display: inline-block;
          position: relative;
          padding:10px;
          color: #666666;
          &::before {
            position: absolute;
            left:0;
            top:26px;
            content: ' ';
            width: 4px;
            height: 4px;
            background: #33317e;
            border-radius: 50%;
          }
        }
      }
    }
    .row-cont {
      margin: 20px 10px;
      display: flex;
      flex-direction: row;
      &-item {
        flex: 0 1 20%;
        padding:0 10px;
      }
    }
  }
  .el-card + .el-card {
    margin-top: 20px;
  }
}
